package cjq.demo.spring.aop1;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * author: cjianquan
 * date: 2016/9/13
 */
public class MyDemoAdvice implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("111");
        Object result = invocation.proceed();
        System.out.println("222");
        return result;
    }
}
